class TimelinePluginRegister < ActiveRecord::Base

   validates_presence_of :title, :owner_user_id
    validates_length_of :description, :in => 0..1000

 # validates_presence_of :timeline_js

  validates_inclusion_of :top_time_unit, :in => TimelineBandInfo::UNITS
  validates_inclusion_of :bottom_time_unit, :in => TimelineBandInfo::UNITS
   validates_length_of :description, :in => 0..1000
   validates_numericality_of :top_pixels, :only_integer => true, :message => "can only be whole number."
   validates_inclusion_of :top_pixels, :in => 1..1000, :message => "can only be between 1 and 1000."
   validates_numericality_of :bottom_pixels, :only_integer => true, :message => "can only be whole number."
   validates_inclusion_of :bottom_pixels, :in => 1..1000, :message => "can only be between 1 and 1000."

end
